package com.taoyuan.hotel.Test;

import com.taoyuan.hotel.utils.PassUtils;
import org.junit.Test;

public class PassTest {
    @Test
    public void t3(){
        //1.生成密钥
        //String key=PassUtils.createAESKey();
        String key="IU3T+bigbvwTRy04q2C+6A==";
        System.err.println(key);
        String str="1232";
        //AES加密
        String pass= PassUtils.aesenc(key,str);
        System.err.println(pass);
        //AES解密
        System.err.println(PassUtils.aesdec(key,pass));


    }

}
